#include <htc.h>

__CONFIG(FOSC_INTOSC & WDTE_OFF);

	
void main(void){
	TRISB = 0b11111111; // Sets all portB pins as inputs
	TRISA = 0b00000000; // Sets all portA pins as outputs


//	SLEEP();            // Sleep untill interrupt arrives


   		RA7 = 1;//! RB0;
	while(1)
	{
		if(RB0)
		{
			RA7 =1;
			_delay(1000000);
			}
		else
		{
			RA7 = 0;
		}	
	
	}
}


	